package com.business.business.web.web;

import cn.hutool.json.JSONObject;
import com.business.business.common.base.BaseController;
import com.business.business.support.annotaion.Action;
import com.business.business.support.model.RespEntity;
import com.business.business.web.service.FirepreventionplanService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.annotation.Resource;

@Action
@RequestMapping(value="/firepreventionplan")
//消防预案新增
public class FirepreventionplanController extends BaseController {
    @Resource
    public FirepreventionplanService firepreventionplanService;
    @RequestMapping(value = "/firepreventionplanAdd",method = RequestMethod.POST)
    public RespEntity firepreventionplanAdd(@RequestBody(required = false) JSONObject jsonParam)  throws Exception{
        return firepreventionplanService.firepreventionplanAdd(jsonParam);
    }

    /**
     * @Author LiHaoDong
     * @Description 消防预案列表
     * @Date 17:54 2020/7/22
     * @Param [jsonParam]
     * @return com.business.business.support.model.RespEntity
     **/
    @RequestMapping(value = "/firepreventionplanListPage",method = RequestMethod.GET)
    public RespEntity firepreventionplanListPage(@RequestBody(required = false) JSONObject jsonParam)  throws Exception{
        return firepreventionplanService.firepreventionplanListPage(jsonParam);
    }

    /**
     * @Author LiHaoDong
     * @Description 消防预案详情
     * @Date 18:01 2020/7/22
     * @Param [jsonParam]
     * @return com.business.business.support.model.RespEntity
     **/
    @RequestMapping(value = "/firepreventionplanDetail",method = RequestMethod.GET)
    public RespEntity firepreventionplanDetail(@RequestBody(required = false) JSONObject jsonParam)  throws Exception{
        return firepreventionplanService.firepreventionplanDetail(jsonParam);
    }


    /**
     * @Author LiHaoDong
     * @Description 消防预案修改
     * @Date 18:24 2020/7/22
     * @Param [jsonParam]
     * @return com.business.business.support.model.RespEntity
     **/
    @RequestMapping(value = "/firepreventionplanUpdate",method = RequestMethod.POST)
    public RespEntity firepreventionplanUpdate(@RequestBody(required = false) JSONObject jsonParam)  throws Exception{
        return firepreventionplanService.firepreventionplanUpdate(jsonParam);
    }

    /**
     * @Author LiHaoDong
     * @Description 消防预案删除
     * @Date 18:33 2020/7/22
     * @Param [jsonParam]
     * @return com.business.business.support.model.RespEntity
     **/
    @RequestMapping(value = "/firepreventionplanDelete",method = RequestMethod.POST)
    public RespEntity firepreventionplanDelete(@RequestBody(required = false) JSONObject jsonParam)  throws Exception{
        return firepreventionplanService.firepreventionplanDelete(jsonParam);
    }
    /**
     * @Author LiHaoDong
     * @Description 消防预案新增
     * @Date 18:09 2020/7/22
     * @Param [jsonParam]
     * @return com.business.business.support.model.RespEntity
     **/
    /*@RequestMapping(value = "/firepreventionplanAdd",method = RequestMethod.GET)
    public RespEntity firepreventionplanAdd(@RequestBody(required = false) JSONObject jsonParam)  throws Exception{
        return firepreventionplanService.fireprevfirepreventionplanAddentionplanDetail(jsonParam);
    }*/
}
